<?php
namespace app\common\validate\Post;

use think\Validate;

// 帖子评论的验证器
class Comment extends Validate
{
    protected $rule =   [
        'pid'  => ['require'],
        'content'  => ['require'],
        'busid'  => ['require'],
        'postid'  => ['require'],
        'status'  => ['require'],
    ];

    protected $message  =   [
        'pid.require' => '上级ID必须填写',
        'content.require' => '评论内容必须填写',
        'busid.require' => '用户未知',
        'postid.require' => '帖子ID必须填写',
        'status.require' => '评论状态必须填写',
    ];
}
